<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>
</body>
</html>
<script>
document.write("Math.abs(x)取X的绝对值:<br />");
document.write(Math.abs(7.25) + "<br />");
document.write(Math.abs(-7.25) + "<br />");
document.write(Math.abs(7.25-10)+ "<br />");

document.write("<br />");
document.write("Math.acos(x)取X的反余弦:<br />");
document.write(Math.acos(0.64) + "<br />");
document.write(Math.acos(0) + "<br />");
document.write(Math.acos(-1) + "<br />");
document.write(Math.acos(1) + "<br />");
document.write(Math.acos(2)+"<br />");

document.write("<br />");
document.write("Math.asin(x)取X的反正弦:<br />");
document.write(Math.asin(0.64) + "<br />");
document.write(Math.asin(0) + "<br />");
document.write(Math.asin(-1) + "<br />");
document.write(Math.asin(1) + "<br />");
document.write(Math.asin(2)+"<br />");

document.write("<br />");
document.write("Math.atan(x)取X的反正切:<br />");
document.write(Math.atan(0.50) + "<br />");
document.write(Math.atan(-0.50) + "<br />");
document.write(Math.atan(5) + "<br />");
document.write(Math.atan(10) + "<br />");
document.write(Math.atan(-5) + "<br />");
document.write(Math.atan(-10)+"<br />");

document.write("<br />");
document.write("Math.atan2(x,y)取 x 轴到点 (x,y) 的角度:<br />");
document.write(Math.atan2(0.50,0.50) + "<br />");
document.write(Math.atan2(-0.50,-0.50) + "<br />");
document.write(Math.atan2(5,5) + "<br />");
document.write(Math.atan2(10,20) + "<br />");
document.write(Math.atan2(-5,-5) + "<br />");
document.write(Math.atan2(-10,10)+"<br />");

document.write("<br />");
document.write("Math.cos(x)取X的余弦:<br />");
document.write(Math.cos(3) + "<br />");
document.write(Math.cos(-3) + "<br />");
document.write(Math.cos(0) + "<br />");

document.write("<br />");
document.write("Math.sin(x)取X的正弦:<br />");
document.write(Math.sin(3) + "<br />");
document.write(Math.sin(-3) + "<br />");
document.write(Math.sin(0) + "<br />");

document.write("<br />");
document.write("Math.tan(x)取X的正切:<br />");
document.write(Math.tan(0.50) + "<br />");
document.write(Math.tan(-0.50) + "<br />");
document.write(Math.tan(5) + "<br />");
document.write(Math.tan(10) + "<br />");
document.write(Math.tan(-5) + "<br />");
document.write(Math.tan(-10) + "<br />");

document.write("<br />");
document.write("Math.ceil(x)对X进行上舍入。:<br />");
document.write(Math.ceil(0.60) + "<br />");
document.write(Math.ceil(0.40) + "<br />");
document.write(Math.ceil(5) + "<br />");
document.write(Math.ceil(5.1) + "<br />");
document.write(Math.ceil(-5.1) + "<br />");
document.write(Math.ceil(-5.9)+"<br />");

document.write("<br />");
document.write("Math.floor(x)对X进行上舍入:<br />");
document.write(Math.floor(0.60) + "<br />");
document.write(Math.floor(0.40) + "<br />");
document.write(Math.floor(5) + "<br />");
document.write(Math.floor(5.1) + "<br />");
document.write(Math.floor(-5.1) + "<br />");
document.write(Math.floor(-5.9)+"<br />");

document.write("<br />");
document.write("Math.round(x)取与 x 最接近的整数:<br />");
document.write(Math.round(0.60) + "<br />");
document.write(Math.round(0.50) + "<br />");
document.write(Math.round(0.49) + "<br />");
document.write(Math.round(-4.40) + "<br />");
document.write(Math.round(-4.60) + "<br />");

document.write("<br />");
document.write("Math.exp(x)返回 e 的 x 次幂:<br />");
document.write(Math.exp(1) + "<br />");
document.write(Math.exp(-1) + "<br />");
document.write(Math.exp(5) + "<br />");
document.write(Math.exp(10) + "<br />");

document.write("<br />");
document.write("Math.log(x)返回数的自然对数:<br />");
document.write(Math.log(2.7183) + "<br />");
document.write(Math.log(2) + "<br />");
document.write(Math.log(1) + "<br />");
document.write(Math.log(0) + "<br />");
document.write(Math.log(-1) + "<br />");

document.write("<br />");
document.write("Math.pow(x,y)取 x 的 y 次幂:<br />");
document.write(Math.pow(0,0) + "<br />");
document.write(Math.pow(0,1) + "<br />");
document.write(Math.pow(1,1) + "<br />");
document.write(Math.pow(1,10) + "<br />");
document.write(Math.pow(2,3) + "<br />");
document.write(Math.pow(-2,3) + "<br />");
document.write(Math.pow(2,4) + "<br />");
document.write(Math.pow(-2,4) + "<br />");

document.write("<br />");
document.write("Math.max(x,y)取 x 和 y 中的最大值:<br />");
document.write(Math.max(5,7) + "<br />");
document.write(Math.max(-3,5) + "<br />");
document.write(Math.max(-3,-5) + "<br />");
document.write(Math.max(7.25,7.30) + "<br />");

document.write("<br />");
document.write("Math.min(x,y)取 x 和 y 中的最小值:<br />");
document.write(Math.min(5,7) + "<br />");
document.write(Math.min(-3,5) + "<br />");
document.write(Math.min(-3,-5) + "<br />");
document.write(Math.min(7.25,7.30) + "<br />");

document.write("<br />");
document.write("Math.random(x)返回 0 ~ 1 之间的随机数:<br />");
document.write(Math.random() + "<br />");


</script>